package com.ruibang.glass.etl.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 容器中玻璃绑定状态信息
 * </p>
 *
 * @author wujie
 * @since 2024-02-05
 */

@ApiModel(value ="容器中玻璃绑定状态信息")
@TableName("g_material_lot_item")
@Data
public class MaterialLotItem {

    @ApiModelProperty(value = "主键Id")
    @TableId(value = "item_id")
    private String itemId;
    @ApiModelProperty(value = "批次号")
    private String contentLotId;
    @ApiModelProperty(value = "绑定id")
    private String bindId;
    @ApiModelProperty(value = "玻璃编号")
    private String glassCode;
    @ApiModelProperty(value = "玻璃顺序号")
    private Integer glassSerialNumber;
    @ApiModelProperty(value = "绑定状态:1=绑定,2=人工解绑")
    private String status;
    @ApiModelProperty(value = "玻璃状态:1=正常,2=抽检,3=破碎")
    private String glassStatus;
    @ApiModelProperty(value = "人工操作状态:10=不合格解绑,20=回收解绑,30=抽检解绑,40=追溯解绑")
    private String handOperationStatus;
    @ApiModelProperty(value = "人工操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime handOperationTime;
    @ApiModelProperty(value = "绑定时间")
    private String bindTime;
    @ApiModelProperty(value = "解绑时间")
    private String unbindTime;
    @ApiModelProperty(value = "解绑原因")
    private String unbindRemark;
    @ApiModelProperty(value = "是否追溯标记")
    private String isTraceMark;
    @ApiModelProperty(value = "创建时间")
    private String createTime;
    @ApiModelProperty(value = "创建人")
    private String createUser;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "更新人")
    private String updateUser;
    @ApiModelProperty(value = "是否手动解绑")
    private String isUnbind;
    @ApiModelProperty(value = "解绑人")
    private String unbindUser;
}
